package com.wsd.smartcarwasher.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class OfflineCountRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OfflineCountRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andGarmentwashnumIsNull() {
            addCriterion("garmentWashNum is null");
            return (Criteria) this;
        }

        public Criteria andGarmentwashnumIsNotNull() {
            addCriterion("garmentWashNum is not null");
            return (Criteria) this;
        }

        public Criteria andGarmentwashnumEqualTo(Integer value) {
            addCriterion("garmentWashNum =", value, "garmentwashnum");
            return (Criteria) this;
        }

        public Criteria andGarmentwashnumNotEqualTo(Integer value) {
            addCriterion("garmentWashNum <>", value, "garmentwashnum");
            return (Criteria) this;
        }

        public Criteria andGarmentwashnumGreaterThan(Integer value) {
            addCriterion("garmentWashNum >", value, "garmentwashnum");
            return (Criteria) this;
        }

        public Criteria andGarmentwashnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("garmentWashNum >=", value, "garmentwashnum");
            return (Criteria) this;
        }

        public Criteria andGarmentwashnumLessThan(Integer value) {
            addCriterion("garmentWashNum <", value, "garmentwashnum");
            return (Criteria) this;
        }

        public Criteria andGarmentwashnumLessThanOrEqualTo(Integer value) {
            addCriterion("garmentWashNum <=", value, "garmentwashnum");
            return (Criteria) this;
        }

        public Criteria andGarmentwashnumIn(List<Integer> values) {
            addCriterion("garmentWashNum in", values, "garmentwashnum");
            return (Criteria) this;
        }

        public Criteria andGarmentwashnumNotIn(List<Integer> values) {
            addCriterion("garmentWashNum not in", values, "garmentwashnum");
            return (Criteria) this;
        }

        public Criteria andGarmentwashnumBetween(Integer value1, Integer value2) {
            addCriterion("garmentWashNum between", value1, value2, "garmentwashnum");
            return (Criteria) this;
        }

        public Criteria andGarmentwashnumNotBetween(Integer value1, Integer value2) {
            addCriterion("garmentWashNum not between", value1, value2, "garmentwashnum");
            return (Criteria) this;
        }

        public Criteria andQuickwashnumIsNull() {
            addCriterion("quickWashNum is null");
            return (Criteria) this;
        }

        public Criteria andQuickwashnumIsNotNull() {
            addCriterion("quickWashNum is not null");
            return (Criteria) this;
        }

        public Criteria andQuickwashnumEqualTo(Integer value) {
            addCriterion("quickWashNum =", value, "quickwashnum");
            return (Criteria) this;
        }

        public Criteria andQuickwashnumNotEqualTo(Integer value) {
            addCriterion("quickWashNum <>", value, "quickwashnum");
            return (Criteria) this;
        }

        public Criteria andQuickwashnumGreaterThan(Integer value) {
            addCriterion("quickWashNum >", value, "quickwashnum");
            return (Criteria) this;
        }

        public Criteria andQuickwashnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("quickWashNum >=", value, "quickwashnum");
            return (Criteria) this;
        }

        public Criteria andQuickwashnumLessThan(Integer value) {
            addCriterion("quickWashNum <", value, "quickwashnum");
            return (Criteria) this;
        }

        public Criteria andQuickwashnumLessThanOrEqualTo(Integer value) {
            addCriterion("quickWashNum <=", value, "quickwashnum");
            return (Criteria) this;
        }

        public Criteria andQuickwashnumIn(List<Integer> values) {
            addCriterion("quickWashNum in", values, "quickwashnum");
            return (Criteria) this;
        }

        public Criteria andQuickwashnumNotIn(List<Integer> values) {
            addCriterion("quickWashNum not in", values, "quickwashnum");
            return (Criteria) this;
        }

        public Criteria andQuickwashnumBetween(Integer value1, Integer value2) {
            addCriterion("quickWashNum between", value1, value2, "quickwashnum");
            return (Criteria) this;
        }

        public Criteria andQuickwashnumNotBetween(Integer value1, Integer value2) {
            addCriterion("quickWashNum not between", value1, value2, "quickwashnum");
            return (Criteria) this;
        }

        public Criteria andWaxingwashnumIsNull() {
            addCriterion("waxingWashNum is null");
            return (Criteria) this;
        }

        public Criteria andWaxingwashnumIsNotNull() {
            addCriterion("waxingWashNum is not null");
            return (Criteria) this;
        }

        public Criteria andWaxingwashnumEqualTo(Integer value) {
            addCriterion("waxingWashNum =", value, "waxingwashnum");
            return (Criteria) this;
        }

        public Criteria andWaxingwashnumNotEqualTo(Integer value) {
            addCriterion("waxingWashNum <>", value, "waxingwashnum");
            return (Criteria) this;
        }

        public Criteria andWaxingwashnumGreaterThan(Integer value) {
            addCriterion("waxingWashNum >", value, "waxingwashnum");
            return (Criteria) this;
        }

        public Criteria andWaxingwashnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("waxingWashNum >=", value, "waxingwashnum");
            return (Criteria) this;
        }

        public Criteria andWaxingwashnumLessThan(Integer value) {
            addCriterion("waxingWashNum <", value, "waxingwashnum");
            return (Criteria) this;
        }

        public Criteria andWaxingwashnumLessThanOrEqualTo(Integer value) {
            addCriterion("waxingWashNum <=", value, "waxingwashnum");
            return (Criteria) this;
        }

        public Criteria andWaxingwashnumIn(List<Integer> values) {
            addCriterion("waxingWashNum in", values, "waxingwashnum");
            return (Criteria) this;
        }

        public Criteria andWaxingwashnumNotIn(List<Integer> values) {
            addCriterion("waxingWashNum not in", values, "waxingwashnum");
            return (Criteria) this;
        }

        public Criteria andWaxingwashnumBetween(Integer value1, Integer value2) {
            addCriterion("waxingWashNum between", value1, value2, "waxingwashnum");
            return (Criteria) this;
        }

        public Criteria andWaxingwashnumNotBetween(Integer value1, Integer value2) {
            addCriterion("waxingWashNum not between", value1, value2, "waxingwashnum");
            return (Criteria) this;
        }

        public Criteria andTatalnumIsNull() {
            addCriterion("tatalNum is null");
            return (Criteria) this;
        }

        public Criteria andTatalnumIsNotNull() {
            addCriterion("tatalNum is not null");
            return (Criteria) this;
        }

        public Criteria andTatalnumEqualTo(Integer value) {
            addCriterion("tatalNum =", value, "tatalnum");
            return (Criteria) this;
        }

        public Criteria andTatalnumNotEqualTo(Integer value) {
            addCriterion("tatalNum <>", value, "tatalnum");
            return (Criteria) this;
        }

        public Criteria andTatalnumGreaterThan(Integer value) {
            addCriterion("tatalNum >", value, "tatalnum");
            return (Criteria) this;
        }

        public Criteria andTatalnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("tatalNum >=", value, "tatalnum");
            return (Criteria) this;
        }

        public Criteria andTatalnumLessThan(Integer value) {
            addCriterion("tatalNum <", value, "tatalnum");
            return (Criteria) this;
        }

        public Criteria andTatalnumLessThanOrEqualTo(Integer value) {
            addCriterion("tatalNum <=", value, "tatalnum");
            return (Criteria) this;
        }

        public Criteria andTatalnumIn(List<Integer> values) {
            addCriterion("tatalNum in", values, "tatalnum");
            return (Criteria) this;
        }

        public Criteria andTatalnumNotIn(List<Integer> values) {
            addCriterion("tatalNum not in", values, "tatalnum");
            return (Criteria) this;
        }

        public Criteria andTatalnumBetween(Integer value1, Integer value2) {
            addCriterion("tatalNum between", value1, value2, "tatalnum");
            return (Criteria) this;
        }

        public Criteria andTatalnumNotBetween(Integer value1, Integer value2) {
            addCriterion("tatalNum not between", value1, value2, "tatalnum");
            return (Criteria) this;
        }

        public Criteria andRecordtimeIsNull() {
            addCriterion("recordTime is null");
            return (Criteria) this;
        }

        public Criteria andRecordtimeIsNotNull() {
            addCriterion("recordTime is not null");
            return (Criteria) this;
        }

        public Criteria andRecordtimeEqualTo(Date value) {
            addCriterionForJDBCDate("recordTime =", value, "recordtime");
            return (Criteria) this;
        }

        public Criteria andRecordtimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("recordTime <>", value, "recordtime");
            return (Criteria) this;
        }

        public Criteria andRecordtimeGreaterThan(Date value) {
            addCriterionForJDBCDate("recordTime >", value, "recordtime");
            return (Criteria) this;
        }

        public Criteria andRecordtimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("recordTime >=", value, "recordtime");
            return (Criteria) this;
        }

        public Criteria andRecordtimeLessThan(Date value) {
            addCriterionForJDBCDate("recordTime <", value, "recordtime");
            return (Criteria) this;
        }

        public Criteria andRecordtimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("recordTime <=", value, "recordtime");
            return (Criteria) this;
        }

        public Criteria andRecordtimeIn(List<Date> values) {
            addCriterionForJDBCDate("recordTime in", values, "recordtime");
            return (Criteria) this;
        }

        public Criteria andRecordtimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("recordTime not in", values, "recordtime");
            return (Criteria) this;
        }

        public Criteria andRecordtimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("recordTime between", value1, value2, "recordtime");
            return (Criteria) this;
        }

        public Criteria andRecordtimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("recordTime not between", value1, value2, "recordtime");
            return (Criteria) this;
        }

        public Criteria andMachineidIsNull() {
            addCriterion("machineId is null");
            return (Criteria) this;
        }

        public Criteria andMachineidIsNotNull() {
            addCriterion("machineId is not null");
            return (Criteria) this;
        }

        public Criteria andMachineidEqualTo(String value) {
            addCriterion("machineId =", value, "machineid");
            return (Criteria) this;
        }

        public Criteria andMachineidNotEqualTo(String value) {
            addCriterion("machineId <>", value, "machineid");
            return (Criteria) this;
        }

        public Criteria andMachineidGreaterThan(String value) {
            addCriterion("machineId >", value, "machineid");
            return (Criteria) this;
        }

        public Criteria andMachineidGreaterThanOrEqualTo(String value) {
            addCriterion("machineId >=", value, "machineid");
            return (Criteria) this;
        }

        public Criteria andMachineidLessThan(String value) {
            addCriterion("machineId <", value, "machineid");
            return (Criteria) this;
        }

        public Criteria andMachineidLessThanOrEqualTo(String value) {
            addCriterion("machineId <=", value, "machineid");
            return (Criteria) this;
        }

        public Criteria andMachineidLike(String value) {
            addCriterion("machineId like", value, "machineid");
            return (Criteria) this;
        }

        public Criteria andMachineidNotLike(String value) {
            addCriterion("machineId not like", value, "machineid");
            return (Criteria) this;
        }

        public Criteria andMachineidIn(List<String> values) {
            addCriterion("machineId in", values, "machineid");
            return (Criteria) this;
        }

        public Criteria andMachineidNotIn(List<String> values) {
            addCriterion("machineId not in", values, "machineid");
            return (Criteria) this;
        }

        public Criteria andMachineidBetween(String value1, String value2) {
            addCriterion("machineId between", value1, value2, "machineid");
            return (Criteria) this;
        }

        public Criteria andMachineidNotBetween(String value1, String value2) {
            addCriterion("machineId not between", value1, value2, "machineid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}